package yagwl.client.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * DTO nodes in a tree
 */
@SuppressWarnings("serial")
public class MasterDetailDTO extends ItemDTO implements Serializable {

  private List<ItemDTO> lines;

  public void setLines(List<ItemDTO> lines) {
    this.lines = lines;
  }

  public List<ItemDTO> getLines() {
    return lines;
  }

  public void addLine(ItemDTO line) {
    if (lines == null)
      lines = new ArrayList<ItemDTO>();
    lines.add(line);
  }

}
